<?php if ( !defined('BASEPATH')) exit('No direct script access allowed');

class Print_disconnect extends CI_Controller {

	public function __construct(){
		parent::__construct();
		$this->load->model('wus');
		$this->load->model($this->session->userdata('formodel'));
		$this->load->library('variable');

	}
	public function index(){
	  $this->load->view('layouts/header',$this->variable->load_data($this->session->userdata('title')));
	  $this->load->view($this->session->userdata('formain'),array(
	  		'zones'		=>	$this->print_disconnect_model->get_zones()
	  	));
	  $this->load->view('layouts/footer');
	 }

	 public function gen_disc(){
	 	$query = $this->print_disconnect_model->get_arrears_dis($this->input->post('zone'));
	 	echo json_encode($query);
	 }

	

}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */